package com.itheima.vo;

import com.itheima.dto.FlavorDto;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DishByIdVo {
    private String id;
    private Integer type;
    private String name;
    private String categoryId;
    private BigDecimal price;
    private String code;
    private String image;
    private String description;
    private Integer status;
    private Integer sort;
    @DateTimeFormat(pattern = "yyyy-MM-dd:HH:mm:ss")
    private LocalDateTime createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd:HH:mm:ss")
    private LocalDateTime updateTime;
    private String createUser;
    private String updateUser;
    private List<FlavorDto> flavors;
    private String categoryName;
    private String copies;
}
